Extract interesting parts from the input text.